package com.vercon.commonmirror.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CalendarUtils {

    public static String currentDate(String pattern){
        Calendar calendar   =   Calendar.getInstance();
        String today =  new SimpleDateFormat( pattern).format(calendar.getTime());
        return   today;
    }

    public static String currentDate(){
        Calendar calendar   =   Calendar.getInstance();
        String today =  new SimpleDateFormat( "yyyy-MM-dd ").format(calendar.getTime());
        return   today;
    }
}
